package com.blb.marry.service.Impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blb.marry.entity.Hotel;
import com.blb.marry.mapper.HotelMapper;
import com.blb.marry.service.HotelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * @author lvtian
 * @date 2023/1/13 11:16
 */
@Service
public class HotelServiceImpl extends ServiceImpl<HotelMapper, Hotel> implements HotelService {
    @Autowired
    private HotelMapper hotelMapper;
    @Override
    public IPage<Hotel> selectHotelPage(Page<Hotel> page) {
        IPage<Hotel> hotelIPage = hotelMapper.selectHotelPage(page);

        return hotelIPage;
    }

    @Override
    public Hotel getHotel(Long hotelId) {
        return hotelMapper.selectHotel(hotelId);
    }
}
